package html

func GetSummary(htmlStr string, summaryLen int) string {
	if summaryLen <= 0 || tools.IsEmpty(htmlStr) {
		return ""
	}
	text := tools.GetHtmlText(htmlStr)
	return tools.GetSummary(text, summaryLen)
}
